package com.example.yunJie.digitalSentry.service.impl;


import com.example.yunJie.digitalSentry.entity.ShiftDateEntity;
import com.example.yunJie.digitalSentry.mapper.one.ShiftDateMapper;
import com.example.yunJie.digitalSentry.service.ShiftDateService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
@RequiredArgsConstructor
public class ShiftDateServiceImpl implements ShiftDateService {

    private final ShiftDateMapper shiftDateMapper;

    @Override
    public int insert(ShiftDateEntity shiftDateEntity) {
        return shiftDateMapper.insert(shiftDateEntity);
    }

    @Override
    public int update(ShiftDateEntity shiftDateEntity) {
        return shiftDateMapper.update(shiftDateEntity);
    }

    @Override
    public int deleteById(Serializable id) {
        return shiftDateMapper.deleteById(id);
    }

    @Override
    public int deleteByShiftId(String shiftId) {
        return shiftDateMapper.deleteByShiftId(shiftId);
    }

    @Override
    public int deleteIdList(List<Integer> idList) {
        return shiftDateMapper.deleteIdList(idList);
    }

    @Override
    public ShiftDateEntity findId(Serializable id) {
        return shiftDateMapper.findId(id);
    }

    @Override
    public ShiftDateEntity find(ShiftDateEntity shiftDateEntity) {
        return shiftDateMapper.find(shiftDateEntity);
    }

    @Override
    public List<ShiftDateEntity> findAll(ShiftDateEntity shiftDateEntity) {
        return shiftDateMapper.findAll(shiftDateEntity);
    }

    @Override
    public List<ShiftDateEntity> findByShiftId(String shiftId) {
        return shiftDateMapper.findByShiftId(shiftId);
    }
}
